﻿@model ContactViewModel

@{ Layout = "~/Views/Shared/Layout.cshtml"; }

@this.Html.RenderMessage()

<div class="sitePath">
	<a href="@this.Url.Action("SendMessage")" title="@this.Model.PageDescription" >@this.Model.PageName</a> 
</div>

@using (this.Html.BeginForm())
{
    <div class="sendMessage">
        <h1>@Resources.SendMessage</h1>
        <div class="sender">
            <span>@Resources.Sender:</span><input name="sender" value="@this.Model.Sender" type="text" class="@(this.Model.IsSenderValid ? "" : "errorInput")" />
        </div>
        <div class="email">
            <span>@Resources.Email:</span><input name="email" value="@this.Model.Email" type="text" />
        </div>
        <div class="messageContent">
            <span>@Resources.Message:</span><textarea rows="1" name="messageContent" cols="1"  class="@(this.Model.IsMessageContentValid ? "" : "errorInput")" >@this.Model.MessageContent</textarea>
        </div>
        @this.Html.RenderCaptcha(this.Model.IsCaptchaValid)
        <button class="linkButton sendMessage" title="@Resources.SendMessage" type="submit">@Resources.Send</button>
    </div>
}